import Vue from 'vue';
import router from 'vue-router';

import Login from './components/login.vue'   
import SysApplypage from './components/syspage.vue'
import Banksyspage from './components/banksyspage.vue'

import verifyApplyedNotice from './components/verifyApplyedNotice.vue'
import verifyApplyNotice from './components/verifyApplyNotice.vue'

import SelectArbitrator from './components/selectArbitrator.vue'

import ApplyIndex from './components/apply/index.vue'
import ApplyFirstForm from './components/apply/firstform.vue'
import ApplySecondForm from './components/apply/secondform.vue'
import ApplyThirdForm from './components/apply/thirdform.vue'
import ApplyFourForm from './components/apply/fourform.vue'
import ApplyDetail from './components/apply/detail.vue'

import staticIndex from './components/statisticsAnalysis/index.vue'
import commissionerDetail from './components/statisticsAnalysis/commissionerdetail.vue'
import directorDetail from './components/statisticsAnalysis/directordetail.vue'
import arbitratorDetail from './components/statisticsAnalysis/arbitratordetail.vue'

import bankInsertIndex from './components/bank/index.vue'

Vue.use(router);


export default new router({
  routes:[{
    path:'/SysApplypage',              //平台页面
    name:'SysApplypage',
    component:SysApplypage,
    redirect:'/SysApplypage/Apply',
    children:[{
      path:'/SysApplypage/Apply',           //仲裁申请
      name:'Apply',
      component:ApplyIndex
    },{
      path:'/SysApplypage/ApplyFirstForm/:caseInfos',
      name:'ApplyFirstForm',
      component:ApplyFirstForm
    },{
      path:'/SysApplypage/ApplySecondForm/:caseInfos',
      name:'ApplySecondForm',
      component:ApplySecondForm
    },{
      path:'/SysApplypage/ApplyThirdForm/:caseInfos',
      name:'ApplyThirdForm',
      component:ApplyThirdForm
    },{
      path:'/SysApplypage/ApplyFourForm/:caseInfos',
      name:'ApplyFourForm',
      component:ApplyFourForm
    },{
      path:'/SysApplypage/ApplyDetail/:basicInfos',
      name:'ApplyDetail',
      component:ApplyDetail
    }]
  },{
    path:'/StaticAnalysis',              //统计分析页面
    name:'StaticAnalysis',
    component:SysApplypage,
    redirect:'/StaticAnalysis/index',
    children:[{
      path:'/StaticAnalysis/index',           //统计页面
      name:'staticIndex',
      component:staticIndex
    },{
      path:'/StaticAnalysis/commissionerDetail/:caseno',           //统计页面-专员详情
      name:'commissionerDetail',
      component:commissionerDetail
    },{
      path:'/StaticAnalysis/directorDetail/:caseno',           //统计页面-主任详情
      name:'directorDetail',
      component:directorDetail
    },{
      path:'/StaticAnalysis/arbitratorDetail/:caseno',           //统计页面-仲裁员详情
      name:'arbitratorDetail',
      component:arbitratorDetail
    }]
  },{
    path:'/bankInsert',              //银行录入页面
    name:'bankInsert',
    component:Banksyspage,
    redirect:'/bankInsert/index',
    children:[{
      path:'/bankInsert/index',           //银行录入页面
      name:'bankInsertIndex',
      component:bankInsertIndex,
      meta:{
          title:'上饶银行案件录入系统'
      }
    }]
  },{
    path:'/',
    name:'Login',
    component:Login,
    meta:{
        title:'易仲裁平台管理系统'
    }
  },{
    path:'/verifyApplyedNotice/:userid',    //查看被申请人通知书
    name:'verifyApplyedNotice',
    component:verifyApplyedNotice
  },{
    path:'/verifyApplyNotice/:userid',    //查看申请人通知书
    name:'verifyApplyNotice',
    component:verifyApplyNotice
  },{
    path:'/SelectArbitrator/:userid',      //选择仲裁员
    name:'SelectArbitrator',
    component:SelectArbitrator
  },{path:'*',redirect:'/'}]
})